<?
if (!empty($_FILES)):
	require_once "qi/init.php";
	//Qi_Upload::salvar_em("upload");
	Qi_Upload::$tipos_permitidos = "jpg png gif jpeg";
	Qi_Upload::salvar_todos_em("files", "upload");
endif;
?>
<html>
<body>
<form enctype="multipart/form-data" method="post">
<input type="file" name="arquivo" />
<input type="file" name="arquivo2" />
<input type="file" name="files[]" />
<input type="file" name="files[]" />
<input type="submit" value="Enviar" />
</form>
<pre>
<? print_r($_REQUEST) ?>
<? print_r($_FILES) ?>
</pre>
</body>
</html>
<? flush(); // sleep(10) ?>